package com.hethongviet.preventingmachine.helps;

public final class CommonUtils
{	
	private CommonUtils(){};

	public static String prepareMessage(String message)
	{
		String temp = "";
		for (int indexChar = 0; indexChar < message.length(); indexChar++)
		{
			char c = message.charAt(indexChar);
			if(Character.isLetterOrDigit(c) || c == SMSHelperDoor.CODE_SEPARATE)
			{
				temp += c;
			}
			else if(c == SMSHelperDoor.CODE_END)
			{
				break;
			}
		}
		return temp;
	}
}
